<!DOCTYPE html>
<html>
<head>
    <title>${展商名称}</title>
	<meta charset="utf-8">
	<meta name="description" content="">
	<meta name="author" content="webthemez">
	<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
    <link rel="stylesheet" type="text/css" href="${ctx}/resource/css/iconfont.css">
    <link rel="stylesheet" type="text/css" href="${ctx}/resource/css/swiper.min.css">
    <link rel="stylesheet" type="text/css" href="${ctx}/resource/css/coolgua_show.css">
    <link rel="stylesheet" type="text/css" href="${ctx}/resource/css/showmedia.css">
    <script type="text/javascript" src="${ctx}/resource/js/jQuery/jquery-1.10.1.min.js"></script>
    <script type="text/javascript" src="${ctx}/resource/js/layer.js"></script>
    <script type="text/javascript" src="${ctx}/resource/js/clipboard/ZeroClipboard.min.js"></script>
    <script type="text/javascript" src="${ctx}/resource/js/html2canvas.js"></script>
    <script type="text/javascript" src="//res.wx.qq.com/open/js/jweixin-1.0.0.js"></script>
	<!-- <script type="text/javascript" src="${ctx}/resource/js/iscroll.js"></script> -->
	<script type="text/javascript" src="${ctx}/resource/js/iscroll-probe.js"></script>
	<script>window.PointerEvent = undefined</script>
	<style>
    	@media screen and (min-width: 960px) { html{font-size:72px!important;}}
    </style>
</head>
<script type="text/javascript">
	//检测浏览器是否支持HTML5
	if (!document.createElement('canvas').getContext) {alert('您浏览器版本过低，请用手机访问或更换Chrome等高级浏览器');}
	var root = document.documentElement;
	var timer = null;
	var baseSize = 0;
	function setBaseSize() {
		baseSize = (root.clientWidth / 375) * 100;
		baseSize = baseSize > 240 ? 240 : baseSize;
		root.style.fontSize = baseSize + 'px';
	}
	window.addEventListener('resize', function() {
	    timer&&clearTimeout(timer);
	    timer = setTimeout(setBaseSize, 300);
	   }, false);
	setBaseSize();
</script>
<script type="text/javascript">
	function show_animate(){
		$('.addxiu_location .xiulist').hover(function(){
			$(this).find('.xiutemplate_set').animate({
				'bottom':'0px'
			},300);
			$(this).find('.xiumask').css('visibility','visible');
		},function(){
			$(this).find('.xiutemplate_set').animate({
				'bottom':'-34px'
			},300);
			$(this).find('.xiumask').css('visibility','hidden');
			$(this).find('.xiuqcode').css('z-index','0').removeClass('rolefadein');
		});
		$('.xiutemplate_bottom .qocode').bind('click',function(){
			var oparent = $(this).parents('.xiulist');
			oparent.find('.xiuqcode').css('z-index','45').addClass('rolefadein');
		});
	}
	var myScroll;
	function updatePosition () {
		var bf = document.getElementById('bottomFixed');
		var topBg = document.getElementById('topBg');
		var yqh = document.getElementById('yqh');
		var cf = document.getElementById('contentScroll');
		var tf = document.getElementById('topFixed');
		if($(bf).position().top <= $(cf).position().top){
			$(bf).css({"opacity":"0"});
			$(yqh).css({"top":"1.85rem"});
			$(topBg).css({"height":"0rem"});
			$(tf).css({"opacity":"1"});
		}else{
			$(bf).css({"opacity":"1"});
			$(topBg).css({"height":"2.1rem"});
			$(tf).css({"opacity":"0"});
			$(yqh).css({"top":"0.85rem"});
		}
	}
	function loaded () {
		myScroll = new IScroll('#wrapper', {
			probeType:3,
		    mouseWheel: true,
		    scrollbars: false,
		    click:true,
		    bounce:false,
		    disablePointer: true,
		    disableTouch:false,
		    disableMouse:false,
		    vScrollbar:false,
		   // momentum:false
		    deceleration:0.006
		});
		myScroll.on('scroll', updatePosition);
		myScroll.on('scrollEnd', updatePosition);
	}
	document.addEventListener('touchmove', function (e) { e.preventDefault(); }, false);
	
	$(function(){
		/* var actArr = $("#actContent").attr("actData").split("；");
		var shtml = '';
		for(var i = 0;i<actArr.length;i++){
			if(actArr[i]){
				shtml += '<li class="huodong" style="position:relative;padding-left:0.08rem;border-bottom:1px dashed #e5e5e5;margin-top:0.05rem;padding-bottom:0.05rem;">'+actArr[i]+'</li>';
			}
		}
		$("#actContent").html(shtml); */
		
		//去掉二维码处默认事件 
		IScroll.utils.preventDefaultException = function (el, exceptions) {
		    if( el.className == 'ervm' ) {
		        return true;
		    }
		    for ( var i in exceptions ) {
		        if ( exceptions[i].test(el[i])) {
		            return true;
		        }
		    }
		    return false;
		};
		//弹层滑动阻止默认事件
		$(".alertCom,.alertScroll").on("touchmove", function (e) {
			e.stopPropagation();
		});
		//产品名称和介绍为空时 隐藏 
		$(".product").each(function(num,value){
			if($(this).find("h3").text() == '' && $(this).find("p").text() == ''){
				$(this).hide();
			}
		});
		//终端产品 图片为空隐藏 
		if($(".zdcp1").html() == '' && $(".zdcp2").html() == ''){
			$(".zdcpT").hide();
			$(".zdcpB").hide();
		}
		$(".zdcp").each(function(num,value){
			if($(this).attr("src") == ''){
				$(this).parent(".zdcpBox").hide();
			}
		});
		$(".zdcpTitle").each(function(){
			if($(this).html() == ''){
				$(this).parent().hide();
			}
		});
		//点击弹出弹层 
		$(".aboutExh").click(function(){
			  $(".alert1").show();
			  $(".close").click(function(){
				  $(".alert1").hide();
			  });
		  });
		  $(".exhLayout").click(function(){
			  $(".alert2").show();
			  $(".close").click(function(){
				  $(".alert2").hide();
			  });
		  });
		  $(".acts").click(function(){
			  $(".alert3").show();
			  $(".close").click(function(){
				  $(".alert3").hide();
			  });
		  });
		
		/* 关于我们全部显示和收起   */
		var fontSize = parseInt($(".aboutUsCont").css("lineHeight"));
	    var contH = $(".aboutUsCont").height();
	    var hNum = contH/fontSize;
	    if(hNum > 4){
	      $(".aboutUsCont").addClass('minH');
	        $(".auBtn").show();
	    }
	    $(".auBtn").on("click",function(){
	        var that = $(this);
	        var btnText = that.text(); 
	        if(btnText == "全部显示"){
	        that.parent().siblings(".aboutUsCont").removeClass('minH');
	        that.text("收起信息");
	        myScroll.refresh();
	        }else{
	        $(".aboutUsCont").addClass('minH');
	        that.text("全部显示"); 
	        myScroll.refresh();
	        }
	    });
	    
	    
	    if($(".actInfo").height()/fontSize > 1){
		      $(".actInfo").addClass('minHa');
		        $(".actBtn").show();
		    }
	    $(".actBtn").on("click",function(){
	        var that = $(this);
	        var btnText = that.text(); 
	        if(btnText == "更多详情"){
	        that.siblings(".actInfo").removeClass('minHa');
	        that.text("收起信息");
	        myScroll.refresh();
	        }else{
	        $(".actInfo").addClass('minHa');
	        that.text("更多详情"); 
	        myScroll.refresh();
	        }
	    });
	    
	    $(".proMore").each(function(i,el){
	    	var proH =  $(this).parent().height();
	    	if($(this).siblings("h3").height()/fontSize > 1){
	    		$(this).parent().siblings().css({"height":"1.49rem"});
	    	}else{
	    		$(this).parent().siblings().css({"height":"1.25rem"});
	    	}
	    	if($(this).siblings(".proInfo").height()/fontSize > 3){
	    		$(this).siblings(".proInfo").addClass('minHs');
	    		$(this).show();
	    	}
	    	$(this).click(function(){
	    		var that = $(this);
		        var btnText = that.text(); 
		        if(btnText == "更多详情"){
			        that.siblings(".proInfo").removeClass('minHs');
			        var h = that.parent().parent().height();
			        that.parent().siblings().height(h);
			        that.text("收起信息");
			        myScroll.refresh();
		        }else{
		      	  that.siblings(".proInfo").addClass('minHs');
		      	  that.text("更多详情"); 
		      	  var h = that.parent().parent().height();
		          that.parent().siblings().height(h);
		          if(that.siblings("h3").height()/fontSize > 1){
		        	  that.parent().siblings().css({"height":"1.49rem"});
			    	}else{
			    		that.parent().siblings().css({"height":"1.25rem"});
			    	}
		      	  
		      	  myScroll.refresh();
		        }
	    	});
	    });
		
	    $(".share").click(function(){
	    	$(".tip").show();
	    });
	    $(document).click(function(e){
	        var target = $(e.target);
	        if(target.closest(".share").length != 0) return;
	        $(".tip").hide();

	    });
		$(window).resize(function(){
			window.location.reload(); 
		});
	    
		$('.col_settle_icon').bind('click',function(event){
			$(this).siblings('.drop_login_info').toggle();
			event.stopPropagation();
		});	
		$('body').click(function(){
			$('.drop_login_info').hide();
		});
		$('.showqcode .xiubtnlint').each(function(num,value){
			if($(value).val() == '关闭'){
				$(value).hide();
			}
		});
		show_animate();
		//复制
		var clip = new ZeroClipboard($('#vlinbtn'),{
			moviePath: '${ctx}/resource/js/clipboard/ZeroClipboard.swf'
		});
		clip.on( 'complete', function(client, args) {
			layer.msg('复制成功',{time:1300});
		});
		var sign = {};
		$.ajax({
			url : '${ctx}/data/generateSignature.action',
			data : {url : document.location.href.split('#')[0]},
			type : 'post',
			dataType : 'json',
			async : false,
			success : function(data) {
				sign = data;
			},
			error : function() {
				
			}
		});
		wx.config({
			appId : sign.appid,
			timestamp : sign.timestamp,
			nonceStr : sign.noncestr,
			signature : sign.signature,
			jsApiList : ['onMenuShareTimeline', 'checkJsApi', 'onMenuShareAppMessage']
		});
		wx.error(function(res) {});
		wx.checkJsApi({
			jsApiList : ['onMenuShareTimeline', 'onMenuShareAppMessage'],
			success : function(res) {
				
			}
		});
		//微信分享图标http->https
		var sharePicture = 'REPLACE_SHARE_IMAGE_CONTENT'
		if(sharePicture.indexOf("http://") === 0){
			sharePicture = "https://" + sharePicture.substring(sharePicture.indexOf("http://")+7, sharePicture.length)
			console.log("分享图标"+sharePicture)
		}
		wx.ready(function() {
			wx.onMenuShareTimeline({
				title : 'REPLACE_SHARE_TITLE_CONTENT',
				desc : 'REPLACE_SHARE_DESC_CONTENT',
				link : document.location.href.split('#')[0],
				imgUrl : sharePicture,
				success : function() {},
				cancel : function() {}
			});
			wx.onMenuShareAppMessage({
				title : 'REPLACE_SHARE_TITLE_CONTENT',
				desc : 'REPLACE_SHARE_DESC_CONTENT',
				link : document.location.href.split('#')[0],
				imgUrl : sharePicture,
				type : '',
				dataUrl : '',
				success : function() {},
				cancel : function() {}
			});
		});
		html2canvas($('.swiperPicbox')[0], {
			onrendered: function(canvas) {
				var data = canvas.toDataURL('image/jpg');
				data = data.replace(/^data:image\/(png|jpg);base64,/, '');
				var filename = document.location.href.substring(document.location.href.lastIndexOf('/') + 1, document.location.href.lastIndexOf('.') + 1) + 'jpg';
				$.ajax({
					url : '${ctx}/data/upload.action',
					data : {filename : filename, data : data},
					type : 'post',
					dataType : 'json',
					success : function(data) {
						
					},
					error : function() {
						
					}
				});
			},
			width : Math.min(315,window.screen.width),
			height : Math.min(500,window.screen.height)
        });
	});
</script>
<body onload="loaded()">
	<div id="loaded" style="display:block;">
		<div class="loading">
			<!-- <div class="rotate">
				<div class="spinner"></div>
			</div> -->
			 <div class="img-progress"></div>
		    <div class="load_logo"></div>
		    <div class="data">Loading<em class="figure" id="loading_figure">10%</em></div>
		</div> 
	</div>
	<div class="show_xiu_location">
		<div class="show_xiu_location_h5">
			<div class="xiu_phone"></div>
			REPLACE_WORD_CONTENT
		</div>
    </div>
	<script type="text/javascript" src="${ctx}/resource/js/imgLoader.js"></script>
	<script type="text/javascript" src="${ctx}/resource/js/swiper.min.js"></script>
</body>
<script>
(function(){
	/* document.addEventListener('DOMContentLoaded', function () {
		function audioAutoPlay(){
			var audio = document.getElementById('music1');
				audio.play();
			document.addEventListener("WeixinJSBridgeReady", function () {
				audio.play();
			}, false);
		}
		audioAutoPlay();
	});  */
	var scale = document.documentElement.clientHeight/667;
	var wcale = document.documentElement.clientWidth/375;
	//真实场景
	imgLoader([
	           '${ctx}/resource/image/ccpit_show/alertTip.png',
	           '${ctx}/resource/image/ccpit_show/bottom.png',
	           '${ctx}/resource/image/ccpit_show/bottom1.png',
	           '${ctx}/resource/image/ccpit_show/bottomInfo.png',
	           '${ctx}/resource/image/ccpit_show/btnBg.png',
	           '${ctx}/resource/image/ccpit_show/btnBg2.png',
	           '${ctx}/resource/image/ccpit_show/close.png',
	           '${ctx}/resource/image/ccpit_show/erwm.jpg',
	           '${ctx}/resource/image/ccpit_show/exh.jpg',
	           '${ctx}/resource/image/ccpit_show/giftBg.png',
	           '${ctx}/resource/image/ccpit_show/icon1.png',
	           '${ctx}/resource/image/ccpit_show/icon2.png',
	           '${ctx}/resource/image/ccpit_show/icon3.png',
	           '${ctx}/resource/image/ccpit_show/icon4.png',
	           '${ctx}/resource/image/ccpit_show/icon5.png',
	           '${ctx}/resource/image/ccpit_show/infoBg.png',
	           '${ctx}/resource/image/ccpit_show/item1.png',
	           '${ctx}/resource/image/ccpit_show/item2.png',
	           '${ctx}/resource/image/ccpit_show/item3.png',
	           '${ctx}/resource/image/ccpit_show/logo.png',
	           '${ctx}/resource/image/ccpit_show/music.png',
	           '${ctx}/resource/image/ccpit_show/pro.png',
	           '${ctx}/resource/image/ccpit_show/product.png',
	           '${ctx}/resource/image/ccpit_show/shareBtn.png',
	           '${ctx}/resource/image/ccpit_show/title.png',
	           '${ctx}/resource/image/ccpit_show/topFix10.png',
	           '${ctx}/resource/image/ccpit_show/tqhd.png',
	           '${ctx}/resource/image/ccpit_show/tqhdPro.png',
	           '${ctx}/resource/image/ccpit_show/vip.png',
	           '${ctx}/resource/image/ccpit_show/ydjBtn.png',
	           '${ctx}/resource/image/ccpit_show/ydjs.png',
	           '${ctx}/resource/image/ccpit_show/yqh.png'
    	  
		 ], function (percentage) {
			console.info(percentage);
	    var percentT = percentage * 100;
	    setTimeout(function(){

            (function(pst){

            	$('#loading_figure').html((parseInt(pst)) + '%');
      	      $('#loading_figure')[0].style.width = pst + '%';
      	      $('.img-progress').width(pst+'%');

            })(percentT);

        },percentT*10);
		  
	    if (percentage == 1) {
	    	setTimeout(function(){
		    	$('#loaded').hide();
		    	$("#topFixed").show();
	        },1000);
	    	/* var audio = document.getElementById('music1');
		   	audio.play();
		   	$('#u-globalAudio')[0].addEventListener("touchend", function(){
		   		if(audio.paused){
					$(this).find('span').css('backgroundPosition','100% 0');
					$(this).find('span').css('animation','rotate2d 1.2s linear infinite');
		   	        audio.play();
				 }else{
					$(this).find('span').css('backgroundPosition','100% -30px');
					$(this).find('span').css('animation','inherit');
		   	        audio.pause();
				 }
		    }); */
	    }
	});
})()
</script>
</html>
<div style="display: none;">
	REPLACE_CENSUS_CONTENT
</div>